public class TestSum {
	public static void main(String[] args) {
		int n = 10;
		int sum = 0;
		while(n<=400) {
			if(n%4==0&&n%6==0) {
				sum+=n;
			}
			n++;
		}
		System.out.println(sum);
	}
}